package gui;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.ImageIcon;


public class Application extends JFrame {	

	
	private static final String TITL = "De Slimste Mens van Wolvertem Puzzle";
	
	
	private void startApplication() {
		setTitle(TITL);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		getContentPane().add(new MainPanel(), BorderLayout.CENTER);
		
		pack();
		setVisible(true);
		setExtendedState(JFrame.MAXIMIZED_BOTH);
	}
	
	
	public static void main(String[] args) { 
		
		SwingUtilities.invokeLater(new Runnable() {  
			@Override
			public void run() {
				Application app = new Application();  
				app.startApplication();
			}      
		});
	}

}
